import { Get } from '@/utils/http'
import type { ApiResponse } from 'axios'

export function getTemplates<T>(config: { opName: string }): ApiResponse<T> {
  return Get<T>('/api/works/templist', config)
}

export const TemplateApi = {
  getTemplates
}
